

<div id="mypagecolumn">
    <h2 class="title"><!--{$tpl_title|h}--></h2>
    <!--{if $tpl_navi != ""}-->
        <!--{include file=$tpl_navi}-->
    <!--{else}-->
        <!--{include file=`$smarty.const.TEMPLATE_REALDIR`mypage/navi.tpl}-->
    <!--{/if}-->
    <div id="mycontents_area">
        <form name="form1" method="post" action="?">
        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
        <input type="hidden" name="order_id" value="" />
        <input type="hidden" name="pageno" value="<!--{$objNavi->nowpage}-->" />
        <h3><!--{$tpl_subtitle|h}--></h3>

        <!--{if $objNavi->all_row > 0}-->

            <p>There are <span class="attention"><!--{$objNavi->all_row}--> <!--{t string='c_* items'}--></span> <!--{t string='c_* in your purchase history.'}--></p>
            <div class="pagenumber_area">
                <!--▼ページナビ-->
                <!--{$objNavi->strnavi}-->
                <!--▲ページナビ-->
            </div>

            <table summary="Purchase history">
                <tr>
                    <th class="alignC"><!--{t string='c_* Date and time of purchase'}--></th>
                    <th class="alignC"><!--{t string='c_* Order number'}--></th>
                    <th class="alignC"><!--{t string='c_* Payment method'}--></th>
                    <th class="alignC"><!--{t string='c_* Total amount'}--></th>
                    <!--{if $smarty.const.MYPAGE_ORDER_STATUS_DISP_FLAG }-->
                    <th class="alignC"><!--{t string='c_* Order status'}--></th>
                    <!--{/if}-->
                    <th class="alignC"><!--{t string='c_* Details'}--></th>
                </tr>
                <!--{section name=cnt loop=$arrOrder}-->
                    <tr>
                        <td class="alignC"><!--{$arrOrder[cnt].create_date|sfDispDBDate}--></td>
                        <td><!--{$arrOrder[cnt].order_id}--></td>
                        <td class="alignC"><!--{$arrOrder[cnt].payment_method|h}--></td>
                        <td class="alignR">&#036; <!--{$arrOrder[cnt].payment_total|number_format}--></td>
                        
                        <!--{if $smarty.const.MYPAGE_ORDER_STATUS_DISP_FLAG }-->
                            <!--{assign var=order_status_id value="`$arrOrder[cnt].status`"}-->
                            <!--{if $order_status_id != $smarty.const.ORDER_PENDING }-->
                            <td class="alignC"><!--{$arrCustomerOrderStatus[$order_status_id]|h}--></td>
                            <!--{else}-->
                            <td class="alignC attention"><!--{$arrCustomerOrderStatus[$order_status_id]|h}--></td>
                            <!--{/if}-->
                        <!--{/if}-->
                        <td class="alignC"><a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/history.php?order_id=<!--{$arrOrder[cnt].order_id}-->">Details</a></td>
                    </tr>
                <!--{/section}-->
            </table>

        <!--{else}-->
            <p><!--{t string='c_* There is no purchase history'}--></p>
        <!--{/if}-->
        </form>
    </div>
</div>
